﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;

namespace DatesWcfService
{
    [ServiceContract]
    public interface IDatesService
    {
        [OperationContract]
        String[] GetRuleNames();

        [OperationContract]
        DateTime? GetDate(string ruleName, DateTime? refDate);

        [OperationContract]
        DateTime[] GetDates(String ruleName, DateTime refDate, int? limit);

        [OperationContract]
        DateTime[] GetDatesBetween(String ruleName, DateTime fromRefDate, DateTime toRefDate);
    }
}